package com.example.siyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
/**
 * @Auther: 全
 * @Date: 2022/10/2 19:54
 * @Description: 课程价格操作日志表
 */
public class CourseLog {
    private int bid;
    private String name;
    /* 历史价格 */
    private Double hisprice;
    /* 现在价格 */
    private Double nowprice;
    /* 审核状态 */
    private int auditstatus;
    /* 操作者 */
    private String operator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    /* 修改日期 */
    private Timestamp datemodified;


    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getHisprice() {
        return hisprice;
    }

    public void setHisprice(Double hisprice) {
        this.hisprice = hisprice;
    }

    public Double getNowprice() {
        return nowprice;
    }

    public void setNowprice(Double nowprice) {
        this.nowprice = nowprice;
    }

    public int getAuditstatus() {
        return auditstatus;
    }

    public void setAuditstatus(int auditstatus) {
        this.auditstatus = auditstatus;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Timestamp getDatemodified() {
        return datemodified;
    }

    public void setDatemodified(Timestamp datemodified) {
        this.datemodified = datemodified;
    }

    @Override
    public String toString() {
        return "Courselog{" +
                "bid=" + bid +
                ", name='" + name + '\'' +
                ", hisprice=" + hisprice +
                ", nowprice=" + nowprice +
                ", auditstatus=" + auditstatus +
                ", operator='" + operator + '\'' +
                ", datemodified=" + datemodified +
                '}';
    }
}
